#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include "vfs_errorcodes.h"
#define maxSizeOfVFSName 30
#define avgFileSizeInVFSInBytes 1024
#define maxBlockSize 1024
#define maxSizeOfFileName 20
#define maxSizeOfLocation 50
typedef struct fileDescriptor
{
	char fileName[maxSizeOfFileName];
	char location[maxSizeOfLocation];
	char type;
	long size;
	long blockNumber;
} descriptors;
typedef struct metaHeader
{
	char fileSystemLabel[maxSizeOfVFSName];
	int countOfFileDescriptors;
	int maxDescriptors;
} meta;
typedef struct header
{
	descriptors *desc;
	char *freeList;
} head;
meta *mh;
head *h;
descriptors *desc;
char *bitMap;
int* arr; // an array to store block pointers indexing from 1
